import {fromJS} from "immutable"
const defaultState = fromJS({
    collapsed:false,
    title:'超市专业服务,只为最好的你 - 2021',
})

export const data = (state=defaultState,action)=>{
    const {type,payload} = action

    switch (type) {

        case "changecollapsed":
            return state.set('collapsed',payload)
            break;
        default:
            return state;
            break;
    }
}